import request from '@/utils/request'

// 获取用户列表
export const getUserListService = (params) => {
    return request.get('/user/list', { params })
}

// 更新用户状态
export const updateStatusService = (userId, status) => {
    return request.put('/user/updateStatus', { userId, status })
}

// 更新用户学校
export const updateSchoolService = (userId, school) => {
    return request.put(`/user/school/${userId}`, { school })
}

// 更新用户专业
export const updateMajorService = (userId, major) => {
    return request.put(`/user/major/${userId}`, { major })
}